<div class="tableform">
  <table class="gridlist">
    <thead>
      <tr>
        <th><{t}>最小值<{/t}></th>
        <th><{t}>最大值<{/t}></th>
        <th><{t}>区间数量<{/t}></th>
      </tr>
    </thead>
    <tbody>
      <tr>
		<{if $gtype.price}>
		 <{foreach from=$gtype.price key=key item=row}>
		  <tr id="id_<{$key}>" data-id="<{$key}>">
			<td><{input type="text" name="gtype[price][{$key}][min]" vtype="required&&unsigned" size="5" value=$row.min }></td>
			<td><{input type="text" name="gtype[price][{$key}][max]" vtype="required&&unsigned" size="5" value=$row.max }></td>
			<td><{input type="text" name="gtype[price][{$key}][num]" vtype="required&&unsigned" size="5" value=$row.num }></td>
		  </tr>
		 <{/foreach}>
		<{else}>
			<td><{input type="text" name="gtype[price][0][min]" vtype="required&&unsigned" size="5" value='' }></td>
			<td><{input type="text" name="gtype[price][0][max]" vtype="required&&unsigned" size="5" value='' }></td>
			<td><{input type="text" name="gtype[price][0][num]" vtype="required&&unsigned" size="5" value='' }></td>
		<{/if}>
      </tr>
    </tbody>
  </table>
</div>
